package com.bk.bands.template;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.bk.bands.common.Color;
import com.bk.bands.template.xmladapter.ColorAdapter;
import com.bk.bands.model.Border;


@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
@XmlType(name = "border", namespace = "http://com.bk.docs", propOrder = {
    "lineWidth",
    "lineColor"
})
public class XmlBorder {


   private Border border;

   public XmlBorder()
   {
      border = new Border();
   }

   public XmlBorder(Border border)
   {
      this.border = border;
   }

   @XmlElement(namespace = "http://com.bk.docs")
    public int getLineWidth() {
        return border.getLineWidth();
    }


    public void setLineWidth(int lineWidth) {
        border.setLineWidth(lineWidth);
    }

    @XmlSchemaType(name = "string")
    @XmlJavaTypeAdapter(type=String.class,value=ColorAdapter.class)
    @XmlElement(namespace = "http://com.bk.docs", required = true)
    public Color getLineColor() {
        return border.getLineColor();
    }


    public void setLineColor(Color lineColor) {
        border.setLineColor(lineColor);
    }

   public Border getBorder()
   {
      return border;
   }
}
